<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>登陆 - 用户中心</title>
		<%@include file="/common/include/title.jsp"%>
		
	</head>
	<body>
		<%@include file="/common/include/header.jsp"%>
		<!-- 网页的主体部分 -->
		<div class="container">
			<div class="row">
				<div class="col-sm-8 col-sm-offset-1 main">
					<h2 class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">修改个人信息</h2>
					<form id="form" class="form-horizontal" action="${rootPath }/head/students/studentUpdateSubmit" 
					enctype="multipart/form-data" method="post">
						<input type="hidden" name="operType" value="updateInfo">
						<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>昵称：</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="text" class="input-text" placeholder="请输入昵称" name="nickName" id="nickName" value="${requestScope.students.nickName }">
						</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>qq：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" placeholder="请输入qq" id="qq" name="qq" value="${requestScope.students.qq }">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>真实姓名：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" placeholder="请输入真实姓名" id="trueName" name="trueName" value="${requestScope.students.trueName }">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>手机号：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" placeholder="请输入手机号" id="phone" name="phone" value="${requestScope.students.phone }">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>头像：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<span class="btn-upload form-group">
									<input type="file" name="file"/>
								</span>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>原照片：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<c:choose>
									<c:when test="${requestScope.students.photoPath != null && requestScope.students.photoPath != ''}">
										<img alt="" src="${rootPath }${requestScope.students.photoPath}" width="150" height="150" style="border-radius: 10px">
									</c:when>
									<c:otherwise>
										<img alt="" src="${rootPath }/img/no_pic.jpg" width="150" height="150" style="border-radius: 10px">
									</c:otherwise>
								</c:choose>
							</div>
						</div>
						
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
								<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<%@include file="/common/include/footer.jsp"%>
	</body>
	
</html>